function getUser(){
	axios.get('/user/getUser')
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	   
	    var respData = response.data;
	    
	   searchApp.tableData = respData;
	   searchApp.pagination.totalCount = respData.length;
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function addUser(){
	axios.post('/user/addUser',{
		name : searchApp.searchform.one,
		description : searchApp.searchform.two,
		dataTime : searchApp.searchform.two
	})
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	    
	    var respData = response.data;
	    
	    if (respData.result > 0) {
	    	searchApp.alertSuccess.isShow=true;
		}
	    else {
	    	searchApp.alertError.isShow=true;
		}
	    
	    
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function getUserByName(){
	
	axios.get('/user/getUserByName',{
		  params: {
			  userName:searchApp.searchform.one
		    }
	})
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function updateUser(){
	axios.put('/user/updateUser',{
			id : searchApp.searchform.one,
			description : searchApp.searchform.two
		})
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


